'), System, and exec in Perl
In Perl, the check mark (''), system, and exec are used to execute the command order. This article will show us how they are used, approached, and differentiated.
I. utilization methods
1. check mark ('')
First of all,
How PHP launches Windows applications, executes bat batches, executes CMD commands (Exec, system function details), EXEC functions
exec or system can invoke cmd command
Directly on the code:
Copy the Code code as follows:/** Open the Calculator for
PHP starts windows applications, executes bat batch processing, and executes cmd commands (exec and system functions). exec Functions
Exec or system can call the cmd command.
Directly run the Code:
Copy codeThe Code is as follows:/** Open the
Example: Delete/home/raven, including all files named Abc.txt in subdirectories:Find/home/raven-name Abc.txt | Xargs RM-RFIf Xargs is not used, then:Find/home/raven-name abc.txt-exec RM-FV {};Preface: About the Find commandBecause find has powerful
Find command Exec
Find is a commonly used Linux Command, but we generally look for it not only, but also further operations. At this time, the role of exec becomes apparent.
Exec explanation:
-The exec parameter is followed by the command, and its
Find is a commonly used Linux command, but we generally find it not only for a look, but also for further operations. at this time, the role of exec will show the label: LinuxFind
Find is a commonly used Linux command, but we generally look for it
Find is one of our most common Linux commands, but we generally look for more than just look, there will be further operations, this time the role of exec is revealed.
EXEC explained:
The-exec parameter is followed by the command command, which
Symantec backup software for VMware, Hyper-V virtual machines, file servers, sql/oracle database backup softwareThe main components are: core versions (cores); agents (agent); options (option)core version (cores)It is commonly referred to as the
(1) exec Function Description
The fork function is used to create a child process, which is almost a copy of the parent process. Sometimes we want the child process to execute another program, the exec function family provides a method to start
Find is a very common Linux command, but what we generally find out is not just to look at it, there will be further operations, this time the role of exec is revealed.EXEC explained:The-exec parameter is followed by command, which terminates with a;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.